﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="HoaDonBanManager.aspx.cs" Inherits="Web.Admin.HoaDonBanManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="panel-heading">
    <h3 class="panel-title"><b>Danh sách hóa đơn bán</b></h3>
</div>
<div class="panel-body">
    <asp:GridView ID="GridView1" runat="server" CssClass="table table-hover" 
        AutoGenerateColumns="False" BorderStyle="None" GridLines="None" AllowPaging="True" 
        onpageindexchanging="GridView1_PageIndexChanging" >
        <Columns>
            <asp:BoundField DataField="MaHD" HeaderText="Mã Hóa Đơn">
            <ItemStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="HoTen" HeaderText="Họ Tên Khách" />
            <asp:BoundField DataField="DienThoai" HeaderText="Điện Thoại" />
            <asp:BoundField DataField="NgHD" HeaderText="Ngày Mua" />
            <asp:TemplateField HeaderText="Giao Hàng">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# GetIconDuyet(Eval("Duyet").ToString()) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="#">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" CssClass="btn btn-danger"
                        NavigateUrl='<%# "HoaDonBanForm.aspx?MaHD=" + Eval("MaHD") %>'>
                        <span class="glyphicon glyphicon-edit" aria-hidden="true"></span> Xem Chi Tiết
                        </asp:HyperLink>
                </ItemTemplate>
                <ItemStyle CssClass="col-action" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</div>
</asp:Content>
